package com.ww.learn.oop.interfaces

interface Named {
    val name: String
}

interface Person : Named {
    val firstName: String
    val lastName: String

    override val name: String get() = "$firstName $lastName"
}

data class Employee(override val firstName: String, override val lastName: String) : Person